public class newwork {
    interface MyInterface{
        void sayHi();
    }
    class InterfaceDemo implements MyInterface{
        public void sayHi(){

        }
        public void show(){
            System.out.println("实现了接口中的show方法");
        }
    }
    class Main {
        public static void main(String[] args) {
            InterfaceDemo interfaceDemo = new InterfaceDemo();
            interfaceDemo.show();
            System.out.println("接口定义完成");
        }
    }
}
